﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Animals
{
    abstract public class Animal : ISoundable
    {
        private int age;
        private string name;
        private string sex;


        public int Age
        {
            get { return this.age; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Sex
        {
            get { return this.sex; }
        }

        public Animal(int age, string name, string sex)
        {
            this.age = age;
            this.name = name;
            this.sex = sex;
        }
        public void MakeSound()
        {
            Console.WriteLine("quack, meow, woof, purrr");
        }

    }
}
